package com.easemob.chat;

import android.content.ContentValues;
import com.easemob.chat.core.e;
import com.easemob.chat.core.k.b;
import java.util.List;
import java.util.Map;

public class EMChatDB
{
  private static String TAG = "chatdb";
  private static EMChatDB instance = null;

  static void initDB(String paramString)
  {
    instance = new EMChatDB();
    e.a(paramString);
  }

  public static EMChatDB getInstance()
  {
    if (instance == null)
    {
      Exception localException = new Exception();
      localException.printStackTrace();
    }
    return instance;
  }

  void closeDatabase()
  {
    e.a().b();
  }

  boolean saveMessage(EMMessage paramEMMessage)
  {
    return e.a().a(paramEMMessage);
  }

  public void deleteMessage(String paramString)
  {
    e.a().b(paramString);
  }

  public List<String> findAllParticipantsWithMsg()
  {
    return e.a().d();
  }

  public List<String> findAllGroupsWithMsg()
  {
    return e.a().e();
  }

  public List<EMMessage> findGroupMessages(String paramString)
  {
    return e.a().d(paramString);
  }

  public List<EMMessage> findGroupMessages(String paramString1, String paramString2, int paramInt)
  {
    return e.a().a(paramString1, paramString2, paramInt);
  }

  public List<EMMessage> findMessages(String paramString)
  {
    return e.a().e(paramString);
  }

  public List<EMMessage> findMessages(String paramString1, String paramString2, int paramInt)
  {
    return e.a().b(paramString1, paramString2, paramInt);
  }

  public void deleteConversions(String paramString)
  {
    e.a().f(paramString);
  }

  public void updateMessageAck(String paramString, boolean paramBoolean)
  {
    e.a().f(paramString, paramBoolean);
  }

  public void updateMessageDelivered(String paramString, boolean paramBoolean)
  {
    e.a().h(paramString, paramBoolean);
  }

  public void updateMessage(String paramString, ContentValues paramContentValues)
  {
    e.a().a(paramString, paramContentValues);
  }

  public Map<String, EMGroup> loadAllGroups()
  {
    return e.a().f();
  }

  public EMGroup loadGroup(String paramString)
  {
    return e.a().g(paramString);
  }

  public void updateGroup(EMGroup paramEMGroup)
  {
    e.a().b(paramEMGroup);
  }

  public void deleteGroup(String paramString)
  {
    e.a().h(paramString);
  }

  public void deleteGroupConversions(String paramString)
  {
    e.a().i(paramString);
  }

  public boolean importMessage(EMMessage paramEMMessage)
  {
    return e.a().c(paramEMMessage);
  }

  public List<String> getConversationsUnread()
  {
    return e.a().g();
  }

  public void saveToken(String paramString, k.b paramb)
  {
    e.a().a(paramString, paramb);
  }

  public k.b getToken(String paramString)
  {
    return e.a().l(paramString);
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.EMChatDB
 * JD-Core Version:    0.6.1
 */